<!doctype html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<html>
<head>
    <%@ include file="/WEB-INF/views-jsp/include/taglib/taglib.jsp" %>
    <%@ include file="/WEB-INF/views-jsp/include/meta/meta.jsp" %>
    <%@ include file="/WEB-INF/views-jsp/include/link/link.jsp" %>
    <%@ include file="/WEB-INF/views-jsp/include/script/script.jsp" %>
    <script type="text/javascript" src="${path}/html/js/jquery.form.js"></script>
    <script type="text/javascript" src="${path}/html/js/js-jsp/common/select-plugin.js?v=1"></script>
    <script type="text/javascript" src="${path}/html/js/js-jsp/st/supplier/supplierOption.js?v=<%out.print(Math.random());%>"></script>
</head>
<body>
<div class="place">
    <span>当前位置：</span>
    <ul class="placeul">
        <li><a href="${path}/supplier/index.do">供应商列表</a></li>
        <c:if test="${supplier.supplierId == null}">
            <li><a >添加供应商</a></li>
        </c:if>
        <c:if test="${supplier.supplierId != null}">
            <li><a >修改供应商</a></li>
        </c:if>
    </ul>
</div>

<form id="supplier_form" class="form" method="post" action="#">
    <div class="formbody">
        <div style="margin-top: -10px;"><span></span></div>
        <ul class="forminfo">
            <div class="formtitle"><span>供应商信息</span></div>
            <li>
                <input type="hidden" name="supId" id="supId" value="${requestScope.supplier.supId}" />
                <label style="text-align:right;">供应商名称：</label>
                <input class="easyui-textbox" name="supName" id="supName" type="text" required="true" data-options="validType:'length[1,15]', prompt:'请输入供应商名称'" missingMessage="供应商名称不能为空" style="width:255px; height: 30px" value="${supplier.supName}"/>
            </li>
            <li>
                <label style="text-align:right;">社会信用代码：</label>
                <input class="easyui-textbox" name="socialCode" id="socialCode" data-options="validType:['SocialCreditCode'],prompt:'请输入社会信用代码'"  value="${supplier.socialCode}" style="width:255px; height: 30px">
            </li>
            <li>
                <label style="text-align:right;">联系人：</label>
                <input class="easyui-textbox" type="text" name="contacts" id="contacts" data-options="prompt:'请输入联系人'" value="${supplier.contacts}"  style="width:255px; height: 30px">
            </li>
            <li>
                <label style="text-align:right;">联系人电话：</label>
                <input class="easyui-textbox" type="text" name="mobile" id="mobile" data-options="validType:['mobile'],prompt:'请输入联系人电话'" value="${supplier.mobile}"  style="width:255px; height: 30px">
            </li>
            <li>
                <label style="text-align:right;">地址：</label>
                <input class="easyui-textbox" name="address" id="address"  data-options="prompt:'请输入供应商地址'" value="${supplier.address}"  style="width:255px; height: 30px">
            </li>
            <li>
                <label style="text-align:right;">备注：</label>
                <input class="easyui-textbox" name="remark" id="remark"  data-options="multiline:true, validType:'length[1,200]',prompt:'请输入备注'" value="${supplier.remark}"  style="width:255px; height: 100px">
        </ul>
    </div>
</form>
<div class="formbody" style="margin-left: 120px">
    <a id="optionSupplier" class="easyui-linkbutton c1" style="width:100px; height: 35px">保存</a>
    &nbsp;&nbsp;&nbsp;
    <a href="${path}/supplier/index.do" class="easyui-linkbutton c1" style="width:100px; height: 35px">取消</a>
</div>
</body>
</html>